import helpers.MiscHelper as MiscHelper
import helpers.GUIHelper as GUIHelper



def check(conf, min_version):
    version = conf["version"]
    if MiscHelper.compare_version(version, min_version) < 0:
        info = "version: {}\n版本号过小\n是否继续？".format(version)
        GUIHelper.ask_continue2("WARNING", info)